@import 'gloab';

$aside-width: 340px;
$top-vc-width: 244px;
$miniVc-width: 120px;
$handleBar-width:80px;
$materialBox-width:120px;
$btn-bg: #78a7ff;
$vc-bg: #eee;

*{margin: 0;padding: 0;box-sizing: border-box}
html,body{height: 100%;width: 100%}
ul li{list-style: none}
button,textarea{
  outline: none;
  border: none;
}
button{
  cursor: pointer;
}
.border{border: 1px solid #ccc}

.warp{
  width: 80%;
  margin: auto;
  padding: 10px;
  min-width: 1223px;
}
section{
  width: calc(100% - 348px);
  .top_content{
    height: 184px;
    overflow: hidden;
    .vc{
        width: $top-vc-width;
        height: $top-vc-width * 3/4;
      border-left: 1px solid #ccc;
      .student{
        width: 100%;
        height: 100%;
        background-image: url('../images/vc/student.png');
        background-position: center center;
        background-repeat: no-repeat;
        background-color: $vc-bg;
      }
    }
    .top_check{
      width: calc(100% - 246px);
      height: 100%;
      overflow: hidden;
      margin-right: 2px;
      .vcList{
          width: 1000%;
          height: 100%;
        li {
          float: right;
          width:  $miniVc-width;
          margin-left: 2px;
          .miniVc{
            width: $miniVc-width;
            height: $miniVc-width *3/4;
            border: 1px solid #ccc;
            background-color: $vc-bg;
            float: right;
            .teacher{
              width: 100%;
              height: 100%;
              background-image: url('../images/vc/teacher.png');
              background-position: center center;
              background-repeat: no-repeat;
            }
            .admin{
              width: 100%;
              height: 100%;
              background-image: url('../images/vc/admin.png');
              background-position: center center;
              background-repeat: no-repeat;
            }
            &:first-child{
              border-top: none;
            }
            &:last-child{
              margin-top: 2px;
              border-bottom: none;
            }
          }
        }
      }
    }
  }
  .middle_content{
    margin-top: 8px;
    position: relative;
    .handleBar{
      width: 92px;
      height: 100%;
      position: relative;
      ul{
        width: 100%;
        li{
          padding: 9px 0;
          text-align: center;
          cursor: pointer;
          span{
            font-size: 12px;
            &:first-child{
              display: inline-block;
              margin: auto;
              margin-bottom: 7px;
            }
            &:last-child{
              display: block;
            }
          }
          &:hover{
            background: #4778c7;
            color: #fff;
            span:first-child{
              background-position: 0 -17px;
            }
          }
        }
      }
      .endClass{
        width: 100%;
        position: absolute;
        bottom: 0;
        left: 0;
        background: #ccc;
        cursor: pointer;
        .word{
          height: 22px;
          color: #fff;
          text-align: center;
          font-size: 14px;
          line-height: 24px;
          background-color: $btn-bg;
        }
        &:before{
          content: '';
          display: block;
          width: 0;
          height: 0;
          border: 6px solid ;
          border-color: transparent transparent $btn-bg transparent;
          position: absolute;
          top: -12px;
          left: 43px;
        }
        .endUl{
          width: 100%;
          padding: 0 10px;
          position: absolute;
          top: -68px;
          left: 0;
          padding-bottom: 14px;
          display: none;
          span{
            display: block;
            padding: 8px 4px;
            background: $btn-bg;
            font-size: 12px;
            color: #fff;
            text-align: center;
            cursor: pointer;
            &:first-child{
              border-top-left-radius: 4px;
              border-top-right-radius: 4px;
              margin-bottom: 1px;
            }
            &:last-child{
              border-bottom-left-radius: 4px;
              border-bottom-right-radius: 4px;
            }
            &:hover{
              background: #4778c7;
            }
          }
        }
        &:hover{
          .endUl{
            display: block;
          }
        }
      }
    }
    .materialBox{
      width: 120px;
      height: 100%;
      margin-left: 10px;
      margin-right: 1px;
      border-bottom: none;
      border-top: none;
      .handleBtn{
        width: 100%;
        text-align: center;
        height: 22px;
        background: #000000;
        border-right: 1px solid;
        border-left: 1px solid;
        i{
          display: inline-block;
          width: 7px;
          height: 12px;
        }
        .down{
          background-image:url("../images/vc/forword.png");
          background-repeat: no-repeat;
          background-position: 0 -24px;

        }
        .up{
          background-image:url("../images/vc/forword.png");
          background-repeat: no-repeat;
          background-position: center center;
        }
      }

      .materialList{
        padding: 6px;
        overflow: hidden;
        height: calc(100% - 44px);
        li{
          width: 100%;
          height: 81px;
          margin-bottom: 16px;
          position: relative;
          border: 1px solid;
          .page_size{
            width: 100%;
            height: 16px;
            line-height: 16px;
            text-align: center;
            opacity: 0.7;
            color: #fff;
            background-color: #000;
            position: absolute;
            bottom: 0;
            left: 0;
            font-size: 14px;
          }
          img{
            width: 100%;
            height: 100%;
          }
        }
        li.active{
          .page_size{
            background-color: #4778c7;
            opacity: 1;
          }
        }
      }
    }
    .materialContent{
      width: calc(100% - 223px);
      position: relative;
      .time{
        position: absolute;
        width: 100%;
        top: 0;left: 0;
        right: 0;
        span{
          display: inline-block;
          height: 20px;
          line-height: 20px;
          text-align: center;
          background-color: #000;
          opacity: 0.7;
          font-size: 12px;
          color: #fff;
        }
        span:first-child{
          width: 70px;
          i{
            display: inline-block;
            width: 16px;
            height: 16px;
            vertical-align: -3px;
            margin-right: 3px;
            background: url("../images/time.png") no-repeat;
          }
        }
        span:last-child{
          width: 46px;
        }
      }
      .materialPanel{
        width: 100%;
        background: $vc-bg;
      }
      .materialHandle{
        width: 100%;
        height: 40px;
        position: relative;
        border-top: none;
        button{
          width: 40px;
          height: 40px;
          text-align: center;
          background: none;
          i{
            display: inline-block;
            width: 7px;
            height: 12px;
            background: url("../images/vc/forword.png") no-repeat;
          }
        }
        .prve_page{
            border-right: 1px solid #ccc;
            position: absolute;
            left: 0;
            top: 0;
            i{
              background-position: 0 0;
            }
          &:hover{
            background: #4778c7;
            i{
              background-position: 0 -12px;
            }
          }
        }
        .next_page{
            border-left: 1px solid #ccc;
            position: absolute;
            right: 0;
            top: 0;
            i{
              background-position: 0 -24px;
            }
          &:hover{
            background: #4778c7;
            i{
              background-position: 0 -36px;
            }
          }
        }
        .tool{
          margin: auto;
          width: 256px;
          height: 100%;
          li{
            width: 64px;
            text-align: center;
            cursor: pointer;
            position: relative;
            color: #555;
            padding-top: 5px;
              span:first-child{
                height: 17px;
                width: 17px;
                margin: 0 auto 4px;
              }
            &:hover{
              background: #4778c7;
              color: #fff;
              span:first-child{
                background-position: 0 -17px;
              }
            }
            }


          }

      }
    }
  }
}




aside{
  width: $aside-width;
  .info{
    width: 100%;
    height: 184px;
    text-align: right;
    position: relative;
    color: #555;
    padding-right: 6px;
    p:first-child{
      font-size: 36px;
      height: 50px;
      line-height: 50px;
    }
    p:nth-child(2){
      font-size: 14px;
      margin-bottom: 12px;
    }
    p:last-child{
      font-size: 14px;
    }
    button{
      width: 108px;
      height: 24px;
      line-height: 24px;
      background-color: $btn-bg;
      border-top-left-radius: 12px;
      border-bottom-left-radius: 12px;
      font-size: 12px;
      color: #fff;
      position: absolute;
      bottom: 8px;
      right: 0;
      .go{
        width: 10px;
        height: 8px;
        display: inline-block;
        margin-left: 4px;
        background: url("../images/vc/go.png") no-repeat;
      }
    }
  }
}
.chat{
  width: $aside-width;
  border: 1px solid #ccc;
  margin-top: 8px;
}




















.chat-box {
  position: relative;
  height: calc(100% - 132px);
}

.sendMsg{
  width: 100%;
  padding: 8px;
  height: 132px;
  border-top: 1px solid #ccc;
  position: relative;
  .enterMsg{
    overflow-y: auto;
    outline: none;
    height: 75%;
    width: 100%;
    border: none;
    resize: none;
    border-radius: 3px;
    background-color: rgba(177, 172, 172, 0.15);
    margin-bottom: 4px;
  }
  .sendHandle{
    text-align: right;
    .expression{
      width: 20px;
      height: 20px;
      margin-top: 3px;
      background:url("../images/vc/face.png") no-repeat;
      background-position: 0 0 ;
      &:hover{
        background-position: 0 -20px;
      }
    }
    .sendBtn{
      width: 66px;
      height: 26px;
      text-align: center;
      border-radius: 3px;
      background-color: $btn-bg;
      color: #fff;
      &:hover{
        background-color: #4778c7;
      }
    }
  }


}
.btn{
  width: 66px;
  height: 26px;
  text-align: center;
  border-radius: 3px;
  background-color: $btn-bg;
  color: #fff;
  &:hover{
    background-color: #4778c7;
  }
}
.chat-box .title .img{
  cursor: pointer;
  border-radius: 50%;
}
.chat-box .title span {
  display: block;
  width: 50%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  -webkit-text-overflow: ellipsis;
  -moz-text-overflow: ellipsis;
  -ms-text-overflow: ellipsis;
}
.chat-box .error {
  cursor: pointer;
}
.u-chat-notice{
  z-index: 5;
  background-color: #fbfcbe;
  width: 710px;
  height: 14px;
  position: absolute;
  top: 80px;
  opacity: 0.8;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
}
.chat-mask{
  z-index: 5;
  background-color: #e5f4ff;
  width: 710px;
  height: 14px;
  position: absolute;
  bottom: 9px;
  opacity: 0.8;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
}
.chat-content {
  position: absolute;
  top: 10px;
  bottom: 10px;
  width: 100%;
  overflow-y: auto;
  padding: 0 3%;
}
.chat-content .item{
  overflow: hidden;
  padding: 4px 0px 10px 0px;
}
.chat-content .img{
  cursor: pointer;
  border-radius: 50%;
}
.no-msg span {
  padding: 3px 15px;
  background-color: #e5f4ff;
  color:#6b8299;
}

.item-you img {
  float: left;
  margin-right: 14px;
}
.item-me img {
  float: right;
  margin-left: 14px;
}
.item-you .img,.item-me .img{
  width: 40px;
  height: 40px;
}
.msg {
  position: relative;
  margin-top: 8px;
  border-radius: 8px;
  border: 1px solid;
}
.nickName{
  position: absolute;
  top: -14px;
  font-size: 12px;
  color: #555 !important;
}
.item-you .nickName{
  left: 0;
}
.item-me .nickName{
  right: 0;
}
.item-you .nick {
  color: #3a4a59;
  font-size: 12px;
  padding-top: 5px;
}
.item-you .msg-text {
  float: left;
  color: #6b8299;
  background: #eaeeef;
  border-color: #eee;
  -webkit-box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 1px 1px rgba(0, 0, 0, 0.06);
  -moz-box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 1px 1px rgba(0, 0, 0, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 1px 1px rgba(0, 0, 0, 0.06);
}
.item-me .msg-text {
  float: right;
  color: #fff;
  background: #4778c7;
}
.item-me .download-file {
  display: block;
  color: #fff;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-you .download-file {
  display: block;
  color:#666;
}
.msg:before, .msg:after {
  content:' ';
  position: absolute;
  top: 11px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  width: 0;
  height: 0;
}
.item-you .msg:before {
  right: 100%;
  border-right: 5px solid #eaeeef;
}
.item-you .msg:after {
  background: none;
}
.item-me .msg:before {
  background: none;
}
.item-me .msg:after {
  left: 100%;
  border-left: 5px solid #4778c7;
}
.item-me .msg .box:before {
  background-position: -25px -40px;
}
.msg .box {
  position: relative;
  padding: 7px 12px;
  zoom: 1;
}
.pdfBox{
  width: 100%;
  padding: 6px;
  height: 90%;
}
.pdfPage{
  width: 100%;
  height: 10%;
  text-align: center;
  color: #fff;
}
.msg .box:before {
  background-position: 0 -40px;
}
.msg .box:after {
  background-position: 0 -60px;
}
.msg .cnt {
  position: relative;
  min-height: 20px;
  line-height: 20px;
  overflow: hidden;
  white-space: normal;
  word-wrap: break-word;
  word-break: break-all;
  font-size: 14px;
}
.msg .cnt img {
  width: 100%;
  max-width: 290px;
  _width:290px;
}
.msg .cnt audio{
  width: 300px;
  height: 35px;
}
.msg .cnt video{
  width: 300px;
}
.msg .cnt .chartlet{
  width: 120px;
  margin: 0;
}

.chat-box .title {
  position: absolute;
  top: 0;
  width: 100%;
  left: 0;
  background-color: #fff;
}
.chat-editor {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 60px;
  width: 100%;
  padding: 0 15px;
  background-color: #e5f4ff;
  border-radius: 0 0 5px 5px;
  -webkit-border-radius: 0 0 5px 5px;
  -moz-border-radius: 0 0 5px 5px;
}


.chat-box .msg{
  max-width: calc(100% - 54px);
}
.u-msgTime {
  text-align: center;
  font-size: 12px;
  color: #aaaaaa;
  line-height: 30px;
  span{
    padding: 3px 5px;
    background-color: #d6d6d6;
    font-size: 12px;
    color: #fff;
    border-radius: 2px;
  }
}

// ----展示教材
.bottom-panel {
  position: relative;
  z-index: 9;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  -webkit-user-select: none;
}
.bottom-panel .material-list {
  overflow: hidden;
  *zoom: 1;
  height: 100%;
  display: flex;
  align-items: center;
}
.bottom-panel .material-list .pre,  .bottom-panel .material-list .next {
  position: relative;
  width: calc(5% - 8px);
  height: calc(100% - 8px);
  margin: 4px;
  float: left;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  transition: background-color 0.2s ease;
}
.bottom-panel .material-list .pre:hover,  .bottom-panel .material-list .next:hover {
  background-color: rgba(0, 0, 0, 0.3);
}
.bottom-panel .material-list .pre i,  .bottom-panel .material-list .next i {
  margin: 0;
  font-size: 2em;
  line-height: 100%;
}
.bottom-panel .material-list .wraper {
  width: 90%;
  height: 100%;
  padding-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
}
.bottom-panel .material-list .wraper .box {
  position: relative;
  height: 100%;
  left: 0;
  width: calc(25% - 1px);
  margin-right: 1px;
  display: inline-block;
  cursor: pointer;
}
.bottom-panel .material-list .wraper .box img{
  position: relative;
  width: 100%;
  height: 100%;
  -webkit-transition: all .5s ease;
  transition: all .5s ease;
}
.bottom-panel .material-list .wraper .box:after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}
.bottom-panel .material-list .wraper .box:hover:after {
  background-color: transparent;
}
.bottom-panel .material-list .wraper .box:hover img{
  transform: scale(1.06);
  z-index: 100;
}

.bottom-panel .material-list .wraper .box aside,  .bottom-panel .material-list .wraper .box span {
  position: absolute;
  z-index: 1;
  left: -100%;
  top: 10%;
  width: 50%;
  height: 30px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 30px;
  font-size: 14px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.8);
}
.bottom-panel .material-list .wraper .box span {
  left: auto;
  top: auto;
  right: 0;
  bottom: 10%;
  width: 50px;
}

.my_icon.pen{
  background: url("../images/vc/pen.png") no-repeat;
  background-position: 0 0;
}
.my_icon.eraser{
  background: url("../images/vc/Eraser.png") no-repeat;
  background-position: 0 0;
}
.my_icon.square{
  background: url("../images/vc/Square.png") no-repeat;
  background-position: 0 0;
}
.my_icon.line{
  background: url("../images/vc/Line.png") no-repeat;
  background-position: 0 0;
}

.iconReplace{
  background: url("../images/vc/file.png") no-repeat;
  background-position: 0 0;
  width: 17px;
  height: 17px;
}
.iconRepload{
  background: url("../images/vc/reload.png") no-repeat;
  background-position: 0 0;
  width: 17px;
  height: 17px;
}
.iconSetting{
  background: url("../images/vc/setting.png") no-repeat;
  background-position: 0 0;
  width: 17px;
  height: 17px;
}
.iconLate{
  background: url("../images/vc/late.png") no-repeat;
  background-position: 0 0;
  width: 17px;
  height: 17px;
}
.setting{
  width: 100%;
  height: 100%;
  margin-top: 8px;
  .set{
    color: #555;
    .cont{
      width: 70%;
      margin: auto;
      padding: 18px 0;
    }
    &:first-child{
      background: $vc-bg;
    }
    &:nth-child(3n){
      background: $vc-bg;
    }
    .msgTxt{
      margin-top: 6px;
      padding-left: 20px;
      font-size: 14px;
      p{
        line-height: 20px;
      }
    }
    p{
      i{
        margin-right: 4px;
        vertical-align: -1px;
      }
    }
    .set_left{
      width: 88%;
      p{
        .textbook{
          width:66%;
          border: 1px dashed #ccc;
          padding: 2px 4px;
          vertical-align: top;
          .book{
            display: block;
            padding: 3px 0;
          }
        }
      }
      &>p:first-child{
        margin-bottom: 20px;
      }
    }
    .upload_materials{
      width: 66%;
      padding: 4px 0;
      text-align: center;
      margin-left: 120px;
    }
  }
}

.modal{
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  .content{
    width: 440px;
    border-radius: 4px;
    background: #fff;
    margin: 16% auto;
    p{
      padding: 50px 0;
      text-align: center;
      border-bottom: 1px solid #ccc;
      span{
        font-weight: bold;
      }
    }
    .btnGroup{
      padding: 8px 54px;
      button{
        width: 78px;
        height: 34px;
        line-height: 34px;
        &:first-child{
          border: 1px solid $btn-bg;
          color: $btn-bg;
          background: #fff;
          border-radius: 3px ;
        }
        &:last-child{
          background: $btn-bg;
          color: #fff;
          float: right;
          &:hover{
            background-color: #4778c7;
          }
        }
      }
    }
  }
}
.startClass{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  padding-top: 26%;
  text-align: center;
  p{
    color: #fff;
    font-size: 14px;
    margin-bottom: 40px;
  }
  .start{
    width: 102px;
    height: 40px;
    font-size: 18px;
    line-height: 40px;
  }
}